package com.jash.lifxdemo.entities;

import android.content.Context;
import android.content.Intent;
import android.support.annotation.Keep;

import com.jash.lifxdemo.ContentActivity;

import java.util.List;
@Keep
public class ContentEntity {
    private long id;
    private String title;
    private String text;
    private String image;
    private int image_type;
    private List<String> images;
    private int note_num;
    private List<String> text_images;
    private String text_content;
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getImage_type() {
        return image_type;
    }

    public void setImage_type(int image_type) {
        this.image_type = image_type;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public int getNote_num() {
        return note_num;
    }

    public void setNote_num(int note_num) {
        this.note_num = note_num;
    }

    public List<String> getText_images() {
        return text_images;
    }

    public void setText_images(List<String> text_images) {
        this.text_images = text_images;
    }

    public String getText_content() {
        return text_content;
    }

    public void setText_content(String text_content) {
        this.text_content = text_content;
    }
    public void showContent(Context context) {
        Intent intent = new Intent(context, ContentActivity.class);
        intent.putExtra("id", id);
        context.startActivity(intent);
    }
}
